<?php
	include "../database.php";
	
	$story_id = $_POST["story_id"];
	$story_notes = urldecode($_POST["notes"]);
	
	
	$queryStory = "UPDATE story SET story_notes = '$story_notes' WHERE  story_id = '$story_id'";
	$result = executeQuery($queryStory);
	
	$data = array('story_id' => $story_id, 'story_notes' => $story_notes);
	echo json_encode($data);

?>
